package com.example.poemtest.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * created by JHT on 2024/5/17
 */
public class PoetryInfoBean {

    private int code;
    private String msg;
    private List<PoetryInfoBean.PoetryInfo> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<PoetryInfoBean.PoetryInfo> getData() {
        return data;
    }

    public void setData(List<PoetryInfo> data) {
        this.data = data;
    }

    public static class PoetryInfo implements Serializable {
        private int poetryId;
        private String poetryTitle;
        private String poetryAuthor;
        private String poetryDynasty;
        private String poetryContent;
        private String poetryTranslation;
        private String poetryPhotoSrc;
        private Date poetryCreateTime;
        private Date poetryReviseTime;
        //create==userId，则是自己创建的
        private int createByUserId;
        private boolean ismyself;  //自加

        public boolean isIsmyself() {
            return ismyself;
        }

        public void setIsmyself(boolean ismyself) {
            this.ismyself = ismyself;
        }

        public int getPoetryId() {
            return poetryId;
        }

        public void setPoetryId(int poetryId) {
            this.poetryId = poetryId;
        }

        public String getPoetryTitle() {
            return poetryTitle;
        }

        public void setPoetryTitle(String poetryTitle) {
            this.poetryTitle = poetryTitle;
        }

        public String getPoetryAuthor() {
            return poetryAuthor;
        }

        public void setPoetryAuthor(String poetryAuthor) {
            this.poetryAuthor = poetryAuthor;
        }

        public String getPoetryDynasty() {
            return poetryDynasty;
        }

        public void setPoetryDynasty(String poetryDynasty) {
            this.poetryDynasty = poetryDynasty;
        }

        public String getPoetryContent() {
            return poetryContent;
        }

        public void setPoetryContent(String poetryContent) {
            this.poetryContent = poetryContent;
        }

        public String getPoetryTranslation() {
            return poetryTranslation;
        }

        public void setPoetryTranslation(String poetryTranslation) {
            this.poetryTranslation = poetryTranslation;
        }

        public String getPoetryPhotoSrc() {
            return poetryPhotoSrc;
        }

        public void setPoetryPhotoSrc(String poetryPhotoSrc) {
            this.poetryPhotoSrc = poetryPhotoSrc;
        }

        public Date getPoetryCreateTime() {
            return poetryCreateTime;
        }

        public void setPoetryCreateTime(Date poetryCreateTime) {
            this.poetryCreateTime = poetryCreateTime;
        }

        public Date getPoetryReviseTime() {
            return poetryReviseTime;
        }

        public void setPoetryReviseTime(Date poetryReviseTime) {
            this.poetryReviseTime = poetryReviseTime;
        }

        public int getCreateByUserId() {
            return createByUserId;
        }

        public void setCreateByUserId(int createByUserId) {
            this.createByUserId = createByUserId;
        }

        @Override
        public String toString() {
            return "PoetryInfo{" +
                    "poetryId=" + poetryId +
                    ", poetryTitle='" + poetryTitle + '\'' +
                    ", poetryAuthor='" + poetryAuthor + '\'' +
                    ", poetryDynasty='" + poetryDynasty + '\'' +
                    ", poetryContent='" + poetryContent + '\'' +
                    ", poetryTranslation='" + poetryTranslation + '\'' +
                    ", poetryPhotoSrc='" + poetryPhotoSrc + '\'' +
                    ", poetryCreateTime=" + poetryCreateTime +
                    ", poetryReviseTime=" + poetryReviseTime +
                    ", createByUserId=" + createByUserId +
                    ", ismyself=" + ismyself +
                    '}';
        }
    }

}
